package com.example.nophase.Fragment;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.example.nophase.R;

import com.example.nophase.activity.wageGroup.BatchOfPayActivity;
import com.example.nophase.activity.wageGroup.BatchOfPayCompleteActivity;


import butterknife.BindView;

public class WageGroupHomeContentFragment extends Fragment {

    public Context context;
    @BindView(R.id.btn_3_layout)
    LinearLayout btn3Layout;
    @BindView(R.id.btn_1_layout)
    LinearLayout btn1Layout;
    @BindView(R.id.btn_2_layout)
    LinearLayout btn2Layout;


    private WageGroupHomeContentFragment(Context context) {
        this.context = context;
    }

    public static WageGroupHomeContentFragment newInstance(Context context) {
        WageGroupHomeContentFragment fragment = new WageGroupHomeContentFragment(context);
        return fragment;
    }

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.wagegroup_home_fragment_content, container, false);
        Button button1 = view.findViewById(R.id.btn_1);
        Button button2 = view.findViewById(R.id.btn_2);



        button2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(context, BatchOfPayCompleteActivity.class);

                context.startActivity(intent);
            }
        });


        button1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(context, BatchOfPayActivity.class);

                context.startActivity(intent);

            }
        });



        return view;
    }
}
